This presentation will show all the NOAA Weather Stations througout the United States using leaflet. Below is a list of weather stations from [“https://www1.ncdc.noaa.gov/pub/data/ghcn/daily/ghcnd-stations.txt”]. Below are the file definitions.
| Variable | Columns | Type |
|---|---|---|
| ID | 1-11 | Character |
| LATITUDE | 13-20 | Real |
| LONGITUDE | 22-30 | Real |
| ELEVATION | 32-37 | Real |
| STATE | 39-40 | Character |
| NAME | 42-71 | Character |
| GSN FLAG | 73-75 | Character |
| HCN/CRN FLAG | 77-79 | Character |
| WMO ID | 81-85 | Character |
Here are some lessons learned about using leaflet to show maps. The dataset contains over 100 thousand locations througout the world. This presentation will only use the stations found in the United States which is approximately 58,577.
Due to the large number of records, the clusterOptions will be used to render the page faster. The loading time for the dataset takes approximately 2 to 3 minutes to load the dataframe. Creating the dataframe in memory before loading the data was the fastest time to loading the data into the dataframe.
Click on the clusters to view the pins. Each pin will display the state and station name. To see an io slide version click on this link: “https://markspoto.github.io/NOAAStationsMarkdown/NOAAStationsSlides.html”